package com.yueyang.sojourn.server.service.sojourn.projectpic;

import com.yueyang.sojourn.server.model.po.SojournProjectPic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-12
 */
@Service
public class SojournProjectPicService {

    @Resource
    private SojournProjectPicMapper sojournProjectPicMapper;


    public int deleteByPrimaryKey(Long id) {
        return sojournProjectPicMapper.deleteByPrimaryKey(id);
    }

    public int insert(SojournProjectPic record) {
        return sojournProjectPicMapper.insert(record);
    }

    public int insertSelective(SojournProjectPic record) {
        return sojournProjectPicMapper.insertSelective(record);
    }

    public void insertList(List<SojournProjectPic> records) {
        sojournProjectPicMapper.insertList(records);
    }

    public SojournProjectPic selectByPrimaryKey(Long id) {
        return sojournProjectPicMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SojournProjectPic record) {
        return sojournProjectPicMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SojournProjectPic record) {
        return sojournProjectPicMapper.updateByPrimaryKey(record);
    }

    public void invalidByProjectId(long loginUserId, long projectId) {
        sojournProjectPicMapper.invalidByProjectId(loginUserId, projectId);
    }
}
